package Structural_design_pattern.Composite_Pattern.Example2;

public class Client {
    public static void main(String[] args) {
        Plate plate1 = new Plate();
        plate1.add(new Apple());
        plate1.add(new Banana());

        Plate plate2 = new Plate();
        plate2.add(new Banana());

        Plate plate3 = new Plate();
        plate3.add(plate1);
        plate3.add(plate2);

        plate3.eat();
    }
}
